class CreateOperators < ActiveRecord::Migration
  def change
    create_table :operators do |t|
      t.string :name,null: false,unique: true
      t.string :passwd ,null: false
      t.integer :failed_times ,null: false,default: 0
      t.integer :is_locked,null: false, default: 0
      t.timestamps null: false
    end
  end
end
